<?php
/**
 * User: tridungpham
 * Date: 6/23/11
 * Time: 12:35 AM
 */
 
class Translator extends Object
{
    private $_lang;
    private $_phrase;
    
    function __construct($lang)
    {
        $this->_lang = $lang;
        require_once 'application' . DS . 'languages' . DS . $lang . '.php';
        $this->_phrase =& $phrase;
    }

    public function setLang($lang)
    {
        $this->_lang = $lang;
    }

    public function _($key)
    {
        return $this->_phrase[$key];
    }
}